package net.huashitong.node.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;

import net.huashitong.node.dao.NodeSchedulesDao;
import net.huashitong.node.entity.NodeSchedules;

@Service
public class NodeSchedulesService extends StringPKService<NodeSchedules> {

	@Autowired
	private NodeSchedulesDao dao;
	
	@Override
	protected BaseDao<NodeSchedules, String> getDao() {
		return dao;
	}
	public List<NodeSchedules> queryNodeSchedules(){
		return dao.queryNodeSchedules();
	}
	
	public List<NodeSchedules> queryNodeSchedulesByProId(String projectId){
		return dao.queryNodeSchedulesByProId(projectId);
	}

	public NodeSchedules getNOdeSchedule(String projectId,String nodeId){
		return dao.getNOdeSchedule(projectId, nodeId);
	}
	public List<NodeSchedules> getNodesByPhone(String phone){
		return dao.getNodesByPhone(phone);
	}
	public List<NodeSchedules> getChlidNodes(String projectId,String parentNodeId){
		return dao.getChlidNodes(projectId, parentNodeId);
	}
	public List<NodeSchedules> getNodesByIds(String[] nodeIds,String projectId){
		return dao.getNodesByIds(nodeIds, projectId);
	}
	public List<NodeSchedules> getUnCheckNodes(String phone){
		return dao.getUnCheckNodes(phone);
	}
	public void setNodesCheck(String phone){
		dao.setNodesCheck(phone);
	}
	public List<NodeSchedules> getNodeSchedulesByTypeAndId(String projectId,String type){
		return dao.getNodeSchedulesByTypeAndId(projectId,type);
	}
}
